package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/sayhi")
    public String sayhi() throws InterruptedException {
        Thread.sleep(250);
        System.out.println("执行了 目标方法 ！");
        return "HI WORLD !";
    }
}
